package com.spring.demo01;

public class Proxy {
    public Host host;
    public Proxy(){
    }
    public Proxy(Host host){
        this.host = host;
    }
    public void rent(){
        seeHouse();
        host.rent();
        hetong();
        fare();
    }
    //看房
    public void seeHouse(){
        System.out.println("中介带你看房子");
    }
    //合同
    public void hetong(){
        System.out.println("签租赁合同");
    }
    //收钱
    public void fare(){
        System.out.println("收中介费");
    }



}
